<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center myCollect_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub myCollect_fd0_0'>
					<view class='flex flex-wrap align-center myCollect_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  myCollect_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='myCollect_fd0_0_c1_c0'>我的收藏</text>
					</view>
					<view class='flex flex-wrap align-center justify-end myCollect_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout">
				<view>
					<benben-flex-tabs class-name='myCollect_benbenTabsfd1_0' v-model="tabs" ref="benben_tabsfd1_0"
						select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0" :open-title-type='false'
						:open-sticky='true' :top='0' :is-show-content='false' :scrollspy='false'
						:tabs-info.sync="tabsInfofd1_0">

						<scroll-view @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd1_0"
							class="benben-tabs" style="width:750rpx" :scroll-x="true"
							:scroll-left.sync="tabsInfofd1_0.moveX" scroll-with-animation="all .3s ease">
							<view class="benben-tabs-content" id="benben_tabsfd1_0-content">
								<view id="benben_tabsfd1_0-title"
									class="benben-tabs-title flex flex align-center justify-around">
									<view
										:class="{ 'checkTitlefd1_0': tabs == '1', 'flex flex-wrap align-center myCollect_titlefd1_0_c3': true }"
										@tap="tabs = '1'" :id="`benben_tabsfd1_0-title-item-${'1'}`">

										<text>住宅</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabs == '2', 'flex flex-wrap align-center myCollect_titlefd1_0_c3': true }"
										@tap="tabs = '2'" :id="`benben_tabsfd1_0-title-item-${'2'}`">

										<text>公寓</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabs == '3', 'flex flex-wrap align-center myCollect_titlefd1_0_c3': true }"
										@tap="tabs = '3'" :id="`benben_tabsfd1_0-title-item-${'3'}`">

										<text>写字楼</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabs == '4', 'flex flex-wrap align-center myCollect_titlefd1_0_c3': true }"
										@tap="tabs = '4'" :id="`benben_tabsfd1_0-title-item-${'4'}`">

										<text>商铺</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabs == '5', 'flex flex-wrap align-center myCollect_titlefd1_0_c3': true }"
										@tap="tabs = '5'" :id="`benben_tabsfd1_0-title-item-${'5'}`">

										<text>厂房</text>

									</view>
								</view>
								<view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}"
									id="benben_tabsfd1_0-line"
									class="benben-tabs-line flex benben-flex-tabs-line myCollect_linefd1_0"></view>
							</view>
						</scroll-view>

					</benben-flex-tabs>

				</view>
				<view class='flex flex-direction flex-wrap align-stretch myCollect_fd1_1'>
					<view class='flex flex-wrap align-start myCollect_fd1_1_c0' v-for="(item,index) in arrList" :key="index" @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/mine/rentalPropertydetails/rentalPropertydetails?type=2&id=${item.id}&district_id=${item.district_id}`">
						<image class='myCollect_fd1_1_c0_c0' mode="aspectFit" :src="item.cover?item.cover:STATIC_URL+'18.png'"></image>
						<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
							<view class='flex flex-wrap align-center myCollect_fd1_1_c0_c1_c0'>
								<text class='myCollect_fd1_1_c0_c1_c0_c0'>{{item.title}}</text>
							</view>
							<view class='flex flex-wrap align-center'>
								<text class='myCollect_fd1_1_c0_c1_c1_c0'>{{item.build_roow}}</text>
								<text class='myCollect_fd1_1_c0_c1_c1_c2'>丨</text>
								<text class='myCollect_fd1_1_c0_c1_c1_c2'>{{item.area?item.area:'0'}}</text>
								<text class='myCollect_fd1_1_c0_c1_c1_c2'>㎡</text>
								<text class='myCollect_fd1_1_c0_c1_c1_c2'>丨</text>
								<text class='myCollect_fd1_1_c0_c1_c1_c2'>{{item.build_orientation}}</text>
								<text class='myCollect_fd1_1_c0_c1_c1_c2'>丨</text>
								<text class='myCollect_fd1_1_c0_c1_c1_c2'>{{item.addr}}</text>
								<image class='myCollect_fd1_1_c0_c1_c1_c11' mode="aspectFit"
									:src='STATIC_URL+"116.png"'></image>
							</view>
							<view class='flex flex-wrap align-center myCollect_fd1_1_c0_c1_c2'>
								<text class='myCollect_fd1_1_c0_c1_c2_c0'>{{item.price}}</text>
								<text class='myCollect_fd1_1_c0_c1_c2_c1'>元</text>
								<text class='myCollect_fd1_1_c0_c1_c2_c1'>/</text>
								<text class='myCollect_fd1_1_c0_c1_c2_c1'>月</text>
								<view class='flex flex-wrap align-center myCollect_fd1_1_c0_c1_c2_c4'>
									<text class='myCollect_fd1_1_c0_c1_c2_c4_c0'>1.8</text>
									<text class='myCollect_fd1_1_c0_c1_c2_c4_c0'>元</text>
									<text class='myCollect_fd1_1_c0_c1_c2_c4_c0'>/</text>
									<text class='myCollect_fd1_1_c0_c1_c2_c4_c0'>㎡</text>
									<text class='myCollect_fd1_1_c0_c1_c2_c4_c0'>/</text>
									<text class='myCollect_fd1_1_c0_c1_c2_c4_c0'>天</text>
								</view>
							</view>
							<view class='flex flex-wrap align-center'>
								<view
									class='flex flex-direction flex-wrap align-center justify-center myCollect_fd1_1_c0_c1_c3_c0'>
									<text class='myCollect_fd1_1_c0_c1_c3_c0_c0'>{{item.build_deposit}}</text>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"tabsInfofd1_0": {
					lineleft: '',
					lineWidth: '',
					moveX: 0,
					scrollX: 0,
					PageScrollX: 0
				},
				"tabs": "1",
				arrList:[],
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getListVal()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			getListVal(){
				uni.showLoading({
					title:'加载中'
				})
				this.$api.get('/m6752/5d89f2123b6be',{
					type:2
				}).then(res=>{
					uni.hideLoading()
					if(res.data.code == 1){
						this.arrList = res.data.data
					}
				})
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.myCollect_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.myCollect_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
	}

	.myCollect_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.myCollect_fd0_0_c0 {
		width: 150rpx;
	}

	.myCollect_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.myCollect_fd1_1_c0_c1_c3_c0_c0 {
		color: #EA4040;
		font-size: 20rpx;
		font-weight: 400;
		line-height: 22rpx;
	}

	.myCollect_fd1_1_c0_c1_c3_c0 {
		background: rgba(253, 235, 235, 1);
		border-radius: 6rpx 6rpx 6rpx 6rpx;
		padding: 1rpx 8rpx 1rpx 8rpx;
	}

	.myCollect_fd1_1_c0_c1_c2_c4_c0 {
		color: #999999;
		font-size: 22rpx;
		font-weight: 400;
		line-height: 22rpx;
	}

	.myCollect_fd1_1_c0_c1_c2_c4 {
		margin: 0rpx 0rpx 0rpx 16rpx;
	}

	.myCollect_fd1_1_c0_c1_c2_c1 {
		color: #EA3727;
		font-size: 24rpx;
		font-weight: 600;
	}

	.myCollect_fd1_1_c0_c1_c2_c0 {
		color: #EA3727;
		font-size: 32rpx;
		font-weight: 700;
		line-height: 45rpx;
	}

	.myCollect_fd1_1_c0_c1_c2 {
		margin: 16rpx 0rpx 16rpx 0rpx;
	}

	.myCollect_fd1_1_c0_c1_c1_c11 {
		width: 36rpx;
		height: 36rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 0rpx 0rpx auto;
	}

	.myCollect_fd1_1_c0_c1_c1_c2 {
		color: #666666;
		font-size: 22rpx;
		font-weight: 400;
		line-height: 22rpx;
	}

	.myCollect_fd1_1_c0_c1_c1_c0 {
		color: #666666;
		font-size: 22rpx;
		font-weight: 400;
		line-height: 30rpx;
	}

	.myCollect_fd1_1_c0_c1_c0_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 40rpx;
	}

	.myCollect_fd1_1_c0_c1_c0 {
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.myCollect_fd1_1_c0_c0 {
		width: 216rpx;
		height: 192rpx;
		margin: 0rpx 20rpx 0rpx 0rpx;
		border-radius: 16rpx;
	}

	.myCollect_fd1_1_c0 {
		background: var(--benbenbgColor1);
		margin: 0rpx 0rpx 24rpx 0rpx;
		padding: 24rpx;
		border-radius: 16rpx;
		background-size: 100% auto;
	}

	.myCollect_fd1_1 {
		padding: 24rpx 24rpx 0rpx 24rpx;
	}

	.myCollect_titlefd1_0_c3 {
		color: #999999;
		font-size: 30rpx;
		font-weight: 400;
		height: 42rpx;
	}

	.myCollect_linefd1_0 {
		background: #FC5F80;
		width: 30rpx;
		height: 6rpx;
		top: 80rpx;
		background-size: 100% auto !important;
		border-radius: 6rpx;
	}

	.checkTitlefd1_0 {
		font-weight: 500 !important;
		font-size: 30rpx !important;
		color: rgba(51, 51, 51, 1) !important;
		background-color: rgba(255, 255, 255, 1) !important;
	}

	::v-deep .myCollect_benbenTabsfd1_0 {
		background: #fff;
		width: 750rpx;
		height: 90rpx;
		white-space: nowrap;
		text-align: center;
	}
</style>